package com.tudouji.project.bill.domain;

import com.flow.service.pojo.BasePojo;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 订单明细对象 sellitem
 *
 * @author tudouji
 * @date 2021-01-14
 */
@Data
public class Sellitem extends BasePojo
{
    private static final long serialVersionUID = 1L;

    /** guid */
    private String guid;

    /** 订单guid */
    @Excel(name = "订单guid")
    private String sellguid;

    /** 产品id */
    @Excel(name = "产品id")
    private String productguid;

    /** 规格id */
    @Excel(name = "规格id")
    private String spguid;

    /** 订单重量 */
    @Excel(name = "订单重量")
    private BigDecimal weight;

    /** 销售单价 */
    @Excel(name = "销售单价")
    private BigDecimal price;

    /** 内部结算价 */
    @Excel(name = "内部结算价")
    private BigDecimal innerPrice;

    /** 出库净重 */
    @Excel(name = "出库净重")
    private BigDecimal loadweight;

    /** 到货净重 */
    @Excel(name = "到货净重")
    private BigDecimal unloadweight;

    /** 包装重量 */
//    @Excel(name = "包装重量")
//    private BigDecimal packweight;

    /** 扣杂率/优惠比例 */
    @Excel(name = "扣杂率/优惠比例")
    private BigDecimal deductrate;

    /** $column.columnComment */
    @Excel(name = "扣杂率/优惠比例")
    private String productname;

    /** $column.columnComment */
    @Excel(name = "扣杂率/优惠比例")
    private String spname;

    /** 销售订单guid	结算方式(计价方式)	1-按件 2-按重量 */
    @Excel(name = "销售订单guid	结算方式(计价方式)	1-按件 2-按重量")
    private Integer settletype;
    private Integer orderpack;

    /** 结算重量 */
    @Excel(name = "结算重量")
    private BigDecimal settleweight;

    /** 结算重量 */
    @Excel(name = "结算重量")
    private BigDecimal settleamount;

//    /** 结算数量 */
//    @Excel(name = "结算数量")
//    private Integer settlecount;

//    /** 订单件数 */
//    @Excel(name = "订单件数")
//    private Integer orderpack;

    /** 赠送重量 */
//    @Excel(name = "赠送重量")
//    private BigDecimal handselweight;

//    /** 赠送件数 */
    @Excel(name = "赠送件数")
    private Integer handselcount;

/*    *//** 出库件数 *//*
    @Excel(name = "出库件数")
    private Integer loadcount;

    *//** 到货件数 *//*
    @Excel(name = "到货件数")
    private Integer unloadcount;*/

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 套装id,就是对应的SellspItem的GUID */
    @Excel(name = "套装id")
    private String suitpackid;

    /** 库存单位id */
    @Excel(name = "销售单位id")
    private Long sfunitid;

    /** 库存单位名称 */
    @Excel(name = "库存单位名称")
    private String stockunit;

    private String remark;
    private String packweightitem;
    private String netweight;
    private Integer flag;

    private String suitname;
    private Integer loadhandsel;

    private BigDecimal settlePrice;

    //业务单据传入，业务单位到库存单位的转换率
    private BigDecimal busiunitTostockunitRate;
}
